//
//  WDNetworkManager.h
//  Pods
//
//  Created by Alean on 2022/12/1.
//

#import <Foundation/Foundation.h>
#import <AFNetworking/AFNetworking.h>
#import "WDNetworkRequestObject.h"

NS_ASSUME_NONNULL_BEGIN

@interface WDNetworkManager : NSObject
+ (instancetype)shareInstance;

+ (WDNetworkRequestObject *)sendGetRequestWithPath:(NSString *)path
                                        paremeters:(NSDictionary *)parameters
                                           success:(SuccessBlock)successBlock
                                           failure:(FailureBlock)failuerBlock;

+ (WDNetworkRequestObject *)sendPostRequestWithPath:(NSString *)path
                                         paremeters:(NSDictionary *)parameters
                                            success:(SuccessBlock)successBlock
                                            failure:(FailureBlock)failuerBlock;

+ (WDNetworkRequestObject *)sendPostRequestWithPath:(NSString *)path
                                         paremeters:(NSDictionary *)parameters
                          constructingBodyWithBlock:(nullable void (^)(id <AFMultipartFormData> formData))block
                                            success:(SuccessBlock)successBlock
                                            failure:(FailureBlock)failuerBlock;

@end

NS_ASSUME_NONNULL_END
